Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #94 #96

Merged
merged 20 commits into from
Nov 14, 2024
Merged

Fix for issue #94 #96

merged 20 commits into from
Nov 14, 2024

Conversation

seicke
Copy link
Member

@seicke seicke commented Nov 12, 2024

Description of Changes

Max height for asset thumbnail is set to 30% of the document height.

Related Issue

Closes #94
Closes #89

BaSyx Configuration for Testing

https://github.com/eclipse-basyx/basyx-java-server-sdk/tree/main/examples/BaSyxMinimal

@seicke seicke requested a review from aaronzi November 12, 2024 07:23
Copy link
Member

@aaronzi aaronzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix. I would advise against dynamically calculating the max-height based on the screen height. This could cause potential issues on mobile for example. My suggestion would be to use a static px value. Something around 300px would probably work very well.

Copy link
Member

@aaronzi aaronzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for addressing this issue. I tried review your PR on mobile devices as well and noticed that the thumbnail wasn't shown anymore:

image

Something seems to be off with the dynamic max-height calculation.

@seicke seicke marked this pull request as draft November 13, 2024 16:47
@seicke
Copy link
Member Author

seicke commented Nov 13, 2024

AASX for testing purpose.zip for realisation of proposal: #89 (comment)

@aaronzi aaronzi marked this pull request as ready for review November 14, 2024 11:46
@aaronzi aaronzi merged commit 6f90eae into eclipse-basyx:main Nov 14, 2024
2 checks passed
@seicke seicke deleted the seicke/issue94 branch December 5, 2024 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants